/* Copyright [2023] <gyl> */
#pragma once

#include <vector>
#include <memory>

#include "common/rc.h"

class PhysicalOperator;

class Utils {
 public:
  RC next_tuple(std::unique_ptr<PhysicalOperator> &operator_, Tuple *&tuple);
  RC get_value(Stmt *select_stmt, std::vector<Value> &values, Db *db_,
               bool &flag);
  RC close(std::unique_ptr<PhysicalOperator> &operator_);
  RC open(std::unique_ptr<PhysicalOperator> &operator_, Db *db_);
};
